package org.sean.framework.schedule;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * Created by linKe on 18/5/29.
 */

@Data
@Schema(name = "任务")
public class ScheduleJob {
    /**
     * 任务id
     */
    @Schema(name = "ID")
    private Integer id;

    @Schema(name = "名称")
    private String name;

    @Schema(name = "服务名")
    private String serviceName;
    /**
     * spring bean名称
     */
    @Schema(name = "Bean名称")
    private String beanName;

    /**
     * 方法名
     */
    @Schema(name = "方法名")
    private String methodName;

    /**
     * 参数
     */
    @Schema(name = "参数")
    private String params;

    /**
     * cron表达式
     */
    @Schema(name = "Cron表达式")
    private String cronExpression;

    /**
     * 任务状态 1：暂停
     */
    @Schema(name = "状态(1:暂停,0:正常)")
    private Integer status;

    /**
     * 异步任务,可同时执行
     */
    @Schema(name = "是否异步执行(默认:false)")
    private Boolean aSync = false;

}
